package calss_1_21exception;

class A{
    int numA=10;
}
class B{
    int numB=20;
}
public class E {
    class C extends A{}
    class D extends B{}
     public void test(){
        C c=new C();
        D d=new D();
         System.out.println(c.numA);
         System.out.println(d.numB);
     }

    public static void main(String[] args) {
        E e=new E();
        e.test();
    }

}
